package com.xbongbong.workflow.pojo.changerecord;

import com.alibaba.fastjson.JSONObject;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**
 * @author: 汪腾伟
 * @date: Created in 2022/9/15 14:21
 * @description： 日志子表单封装实体
 */
@Getter
@Setter
public class ChangeRecordSubFormFieldBasicPojo implements Serializable {

    private static final long serialVersionUID = -6732476109471761595L;

    private String attr;

    private String name;

    /**
     * 是否是子表单标识 true:是  false:否
     */
    private Boolean subFormTag;

    private List<ChangeRecordSubFormHeadPojo> head;

    /**
     * content中的格式  {
     *                   "operateTag": 1,
     *                       "text_1": {
     *                             "attr": "text_1",
     *                             "fieldType":8,
     *                             "value": {
     *                                 "beforeValue": "123",
     *                                 "afterValue": "345"
     *                             },
     *                         }
     *
     *                 }
     *  实体不好封装，这边用一个Object去替代一下
     */
    private List<JSONObject> content;

    private Long addTime;


    public ChangeRecordSubFormFieldBasicPojo() {
    }

    public ChangeRecordSubFormFieldBasicPojo(String attr, Boolean subFormTag, List<JSONObject> content) {
        this.attr = attr;
        this.subFormTag = subFormTag;
        this.content = content;
    }
}
